/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package supply;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


class inventory {
int inventoryRice=10;
int inventoryVegetables=10;
int inventoryNoodles=10;
int inventoryEggs=10;
int inventoryChilli=10;
int inventoryChicken=10;
int inventoryProductQuantity;

InputStreamReader is2=new InputStreamReader(System.in);
BufferedReader br2=new BufferedReader(is2);
Main m1=new Main();


    void availableitems() throws IOException
    {
        System.out.println("Items Available in the Inventory are : ");
        System.out.println("Rice :"+inventoryRice);
        System.out.println("Vegetables :"+inventoryVegetables);
        System.out.println("Noodles :"+inventoryNoodles);
        System.out.println("Eggs :"+inventoryEggs);
        System.out.println("Chilli :"+inventoryChilli);
        System.out.println();
        

        
    }

    void product0(int inventoryProductQuantity) throws IOException {
        System.out.println("The Items Needed are :");
        System.out.println("Rice");
        System.out.println("Vegetables");
        System.out.println("Chilli");
        System.out.println();

        for(int q=0;q<inventoryProductQuantity;q++)
        {
            inventoryRice--;
            inventoryVegetables--;
            inventoryChilli--;
        }
        availableitems();
        Main.starting();
        
        
        }


    void product1(int inventoryProductQuantity) throws IOException {
        System.out.println("The Items Needed are :");
        System.out.println("Noodles");
        System.out.println("Vegetables");
        System.out.println("Chilli");

        for(int q=0;q<inventoryProductQuantity;q++)
        {
            inventoryNoodles--;
            inventoryVegetables--;
            inventoryChilli--;
        }
        availableitems();
        Main.starting();
        
                    }


    void product2(int inventoryProductQuantity) throws IOException {
        System.out.println("The Items Needed are :");
        System.out.println("Rice");
        System.out.println("Vegetables");
        System.out.println("Egg");

        for(int q=0;q<inventoryProductQuantity;q++)
        {
            inventoryRice--;
            inventoryVegetables--;
            inventoryChilli--;
            inventoryEggs--;
        }
        availableitems();
        Main.starting();
       
                    }


    void product3(int inventoryProductQuantity) throws IOException {
        System.out.println("The Items Needed are :");
        System.out.println("Noodles");
        System.out.println("Vegetables");
        System.out.println("Egg");

        for(int q=0;q<inventoryProductQuantity;q++)
        {
            inventoryNoodles--;
            inventoryVegetables--;
            inventoryChilli--;
            inventoryEggs--;
        }
        availableitems();
        Main.starting();
                    }


    void product4(int inventoryProductQuantity) throws IOException {
        System.out.println("The Items Needed are :");
        System.out.println("Rice");
        System.out.println("Vegetables");
        System.out.println("Chicken");

        for(int q=0;q<inventoryProductQuantity;q++)
        {
            inventoryRice--;
            inventoryVegetables--;
            inventoryChilli--;
            inventoryChicken--;
        }
        availableitems();
        Main.starting();
                    }


}
